package com.diver.flinkdemo.entity.xxt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 人员 组织/机构表
 * @Author: jeecg-boot
 * @Date: 2022-05-10
 * @Version: V1.0
 */
@ApiModel(value = "person_depart对象", description = "人员 组织/机构表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("person_depart")
public class PersonDepart implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 组织/机构id
     */
    @Excel(name = "组织/机构", width = 15, dictTable = "bus_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "组织/机构")
    private String departId;
    /**
     * 层级
     */
    @ApiModelProperty(value = "层级")
    private Integer departLevel;
    /**
     * 人员id
     */
    @ApiModelProperty(value = "人员id")
    private String personId;

    /**
     * 是否是机构 (1是主，0非主)
     */
    @Excel(name = "是否是主机构", width = 15, dicCode = "is_master")
    @ApiModelProperty(value = "是否是主机构")
    private String isMaster;
//	/**场地id*/
//    @ApiModelProperty(value = "场地id")
//    private String locId;
//	/**场地层级*/
//    @ApiModelProperty(value = "场地层级")
//    private Integer locLevel;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
}
